package api.list;

import java.io.Serializable;

/**
 * @author Ann Raboschuk
 */
public class Node<T> implements Serializable
{
   private static final long serialVersionUID = 1L;
   private T data;
   private Node<T>    next, prev;
   
   public Node(T data)
   {
      this.data = data;
   }
   
   public T getData()
   {
      return data;
   }
   
   public void setData(T data)
   {
      this.data = data;
   }
   
   public Node<T> getNext()
   {
      return next;
   }
   
   public void setNext(Node<T> next)
   {
      this.next = next;
   }

   public Node<T> getPrevious()
   {
      return prev;
   }
   
   public void setPrevious(Node<T> prev)
   {
      this.prev = prev;
   }
}
